package edu.uni.dormitory.mapper;

import edu.uni.dormitory.bean.MaintenanceApplyApproval;
import edu.uni.dormitory.bean.MaintenanceApplyApprovalExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * @author 郑伟森
 * @create 2019.05.01
 * @function 映射
 */
public interface MaintenanceApplyApprovalMapper {
    int countByExample(MaintenanceApplyApprovalExample example);

    int deleteByExample(MaintenanceApplyApprovalExample example);

    int deleteByPrimaryKey(Long id);

    int insert(MaintenanceApplyApproval record);

    int insertSelective(MaintenanceApplyApproval record);

    List<MaintenanceApplyApproval> selectByExample(MaintenanceApplyApprovalExample example);

    MaintenanceApplyApproval selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") MaintenanceApplyApproval record, @Param("example") MaintenanceApplyApprovalExample example);

    int updateByExample(@Param("record") MaintenanceApplyApproval record, @Param("example") MaintenanceApplyApprovalExample example);

    int updateByPrimaryKeySelective(MaintenanceApplyApproval record);

    int updateByPrimaryKey(MaintenanceApplyApproval record);

    MaintenanceApplyApproval selectLatestByApplyId(Long applyId);
}